<template>
	<view class="authoriztion-tab">
		<view class="tabbar-l"></view>
		<view class="tabbar-title">{{title}}</view>
		<view class="tabbar-r">
			<image @tap="onClose" class="guanbi-btn" src="../../static/images/visualization/guanbi.png" mode="widthFix"></image>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			title: {
				type: String,
				default: '授权人员'
			},
			isShowAll: {
				type: Boolean,
				default: true
			}
		},
		data() {
			return {}
		},
		methods: {
			onClose() { //返回
				uni.redirectTo({
					url: '/pages/index/index'
				})
			}
		}
	}
</script>

<style scoped lang="less">
.authoriztion-tab{
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex: 1;
	align-items: center;
	.tabbar-l{
		width: 33.3%;
		height: 100%;
	}
	.tabbar-title{
		width: 33.3%;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 52rpx;
		color: #FFFFFF;
		letter-spacing: 5rpx;
	}
	.tabbar-r{
		width: 33.3%;
		height: 100%;
		display: flex;
		justify-content: flex-end;
		align-items: center;
		.guanbi-btn{
			width: 250rpx;
			height: 88rpx;
		}
	}
}	
</style>
